package Tanks;

import com.golden.gamedev.object.Sprite;
import com.golden.gamedev.object.AnimatedSprite;
import com.golden.gamedev.object.sprite.VolatileSprite;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

/**
 * @author FRNeK
 */
public class Pole extends Sprite{
    boolean _hide,_empty,_destroy,_bulletStop,_tankStop;
    int _width,_height,_x,_y;
    String _texture;
    //Konstruktor
    public Pole (String type, int wY,int wX,BufferedImage texture)
    {
        super(texture, wX, wY);
        _width=50;
        _height=50;
        _x=wX;
        _y=wY;
        switch (type)
        {
            case "tree": 
                _hide=true;
                _empty=false;
                _destroy=false;
                _bulletStop=false;
                _tankStop=false;
                _texture="tree.png";
                break;
            case "water":
                _hide=false;
                _empty=false;
                _destroy=false;
                _bulletStop=false;
                _tankStop=true;
                _texture="water.png";
                break;         
            case "empty":
                _hide=false;
                _empty=true;
                _destroy=false;
                _bulletStop=false;
                _tankStop=false;
                _texture="empty.png";
                break;
            case "brick":
                _hide=false;
                _empty=false;
                _destroy=true;
                _bulletStop=true;
                _tankStop=true;
                _texture="brick.png";
                break;  
            case "steel":
                _hide=false;
                _empty=false;
                _destroy=false;
                _bulletStop=true;
                _tankStop=true;
                _texture="steel.png";
                break;  
            case "orzelek":
                _hide=false;
                _empty=false;
                _destroy=true;
                _bulletStop=true;
                _tankStop=true;
                _texture="orzelek.png";
                break; 
            default:
                _hide=false;
                _empty=true;
                _destroy=false;
                _bulletStop=false;
                _tankStop=false;
                _texture="empty.png";
                break;
        }
    }
    //Wyswietlanie pola
    @Override
    public void update (long l){
        super.update(l);
    }
            
    @Override
    public void render (Graphics2D gd){
        
        super.render(gd);
    }

}
